x86: make sure module array is large enough in pvh-boot.c
authorWei Liu <wei.liu2@citrix.com>
Wed, 26 Sep 2018 10:52:54 +0000 (11:52 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 1 Oct 2018 10:12:21 +0000 (11:12 +0100)
commitc88397db5c3fa5e52da05234fba046bda075af29
tree197b825260adcda979551fa42e80303d149568ea
parentedb4724e36256c495a6aa3cf1a12722efe271f9d
x86: make sure module array is large enough in pvh-boot.c

The relocation code in __start_xen requires one extra element in the
module array. By the looks of it the temporary array is already large
enough. Panic if that's not the case.

While at it, turn an ASSERT to panic() as well.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/guest/pvh-boot.c